package com.example.xn.xndemo.model;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * 课程对象 course_info
 *
 * @author hlmingyou
 * @date 2021-07-22
 */
@Data
@Table(name = "course_info")
public class CourseInfo {
    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @Id
    private Long id;

    /**
     * skuId
     */
    @Column(name = "sku_id")
    private Long skuId;

    /**
     * 商品id
     */
    @Column(name = "product_id")
    private Long productId;
    /**
     * 课程名称
     */
    @Column(name = "title")
    private String title;

    /**
     * 数据域id
     */
    @Column(name = "dept_id")
    private Long deptId;

    /**
     * 项目id
     */
    @Column(name = "project_id")
    private Long projectId;

    /**
     * 课时数（冗余）
     */
    @Column(name = "course_count")
    private Long courseCount;

    /**
     * 科目
     */
    @Column(name = "subject")
    private String subject;

    /**
     * 教材版本
     */
    @Column(name = "course_version")
    private String courseVersion;

    /**
     * 适合年级
     */
    @Column(name = "grade")
    private String grade;

    /**
     * 课程封面
     */
    @Column(name = "img_url")
    private String imgUrl;

    /**
     * 课程简介
     */
    @Column(name = "description")
    private String description;

    /**
     * 课程类型
     */
    @Column(name = "type")
    private String type;

    /**
     * 开始时间
     */
    @Column(name = "start_time")
    private Date startTime;

    /**
     * 结束时间
     */
    @Column(name = "end_time")
    private Date endTime;

    /**
     * 状态 预留
     */
    @Column(name = "status")
    private String status;

    /**
     * 教室id
     */
    @Column(name = "classroom_id")
    private Long classroomId;

    /**
     * 直播id（预留）
     */
    @Column(name = "live_id")
    private Long liveId;

}
